//
//  UIColor+Additions.h
//  YDHealth_iPhone
//
//  Created by zhangsong on 16/8/16.
//  Copyright © 2016年 Shuang Qian Online Payment Company. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIColor (Additions)
/**
 *  16进制转UIColor
 *
 *  @param hexValue   16进制颜色值
 *  @param alphaValue 颜色的透明度
 *
 *  @return UIColor
 */
+ (UIColor*) colorWithHex:(NSInteger)hexValue alpha:(CGFloat)alphaValue;
/**
 *  16进制转UIColor
 *
 *  @param hexColor 16进制颜色值
 *
 *  @return UIColor
 */
+ (UIColor *)getColorWithHex:(NSString *)hexColor;
/**
 *  16进制转UIColor
 *
 *  @param hexValue   16进制颜色值
 *
 *  @return UIColor
 */
+ (UIColor*) colorWithHex:(NSInteger)hexValue;
/**
 *  UIColor转16进制颜色值
 *
 *  @param color  颜色值
 *
 *  @return 16进制颜色值
 */
+ (NSString *) hexFromUIColor: (UIColor*) color;
+ (UIColor *)getColorWithHex:(NSString *)hexColor alpha:(CGFloat)alphaValue;
//根据图片获取图片的主色调
+(UIColor*)mostColor:(UIImage*)image;


/**
 随机颜色 初期布局UI

 @return  随机颜色
 */
+ (UIColor *)randomColor;
@end
